package com.test1230am;

public class Test19 {
    public static void main(String[] args) {
        // (19)元素3和元素2互换位置
        int[] arr = {5, 3, 7, 2, 6};
        int temp = arr[1];
        arr[1] = arr[3];
        arr[3] = temp;
        for(int a:arr){
            System.out.println(a);
        }
    }
}
